package lesson13;

import java.util.HashMap;

public class MyHashMap {


    public static void main(String[]   args ){
        HashMap map = new  HashMap<MyHashMap,Integer>(1);
        for (int i = 0; i < 60000;   i++)    {
            MyHashMap  myHashMap= new MyHashMap();
            map.put(myHashMap,  null);
        }
        System.out.println("运行结束");
    }


    @Override
    public  int hashCode(){
        return  1;
    }


    /*public static void main(String[] args) {
        HashMap<MyHashMap, Integer> hashMap = new HashMap(1);

        for(int i = 0; i< 1000; i++){
            MyHashMap  myHashMap = new MyHashMap();
            hashMap.put(myHashMap, null);
        }
        System.out.println("运行结束");
    }

    @Override
    public int hashCode() {
        return 1;
    }*/
}
